<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>01.flex布局</title>

  <style>

  .box{
    width: 80%;
    height: 120px;
    background-color: pink;
    display: flex;
  }

  .box1{
    width: 80%;
    height: 120px;
    background-color: pink;
    display: flex;
    justify-content: space-around;
  }

  .box2{
    width: 80%;
    height: 120px;
    background-color: pink;
    display: flex;
  }

  .box3{
    width: 80%;
    height: 120px;
    background-color: pink;
    display: flex;
    justify-content: space-between;
  }

  .box4{
    width: 80%;
    height: 120px;
    background-color: pink;
    display: flex;
    justify-content: space-evenly;
  }

  .item {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    margin-right: 10px;
    border-radius: 10px;
  }

  .item1 {
    width: 100px;
    height: 100px;
    background-color: blueviolet;
    margin-right: 10px;
    border-radius: 10px;
    flex: 1;
  }

  </style>
</head>
<body>

<h4> display:flex </h4>
<div class="box">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>
  
<h4>justify-content: space-around</h4>
<div class="box1">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>

<h4>justify-content: space-evenly</h4>
<div class="box4">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>

<h4>justify-content: space-between</h4>
<div class="box3">
  <div class="item">1</div>
  <div class="item">2</div>
  <div class="item">3</div>
  <div class="item">4</div>
  <div class="item">5</div>
</div>

<h4>flex: 1</h4>
<div class="box2">
  <div class="item1">1</div>
  <div class="item1">2</div>
  <div class="item1">3</div>
  <div class="item1">4</div>
  <div class="item1">5</div>
</div>

</body>
</html>